home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Rozne / HTTrack 3.40-2 / httrack-3.40-2.exe / {app} / src_win / WinHTTrackIEBar / WinHTTrackLauncher.h < prev    next >
C/C++ Source or Header  |  2004-01-25  |  2KB  |  61 lines

  1. // WinHTTrackLauncher.h: Definition of the WinHTTrackLauncher class
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_WINHTTRACKLAUNCHER_H__08EA4A9D_DC5C_487F_8196_18B699DB7E08__INCLUDED_)
  6. #define AFX_WINHTTRACKLAUNCHER_H__08EA4A9D_DC5C_487F_8196_18B699DB7E08__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "resource.h"       // main symbols
  13. #include "docobj.h"
  14. #include <SHLGUID.h>
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // WinHTTrackLauncher
  18.  
  19. class WinHTTrackLauncher : 
  20.     public IDispatchImpl<IWinHTTrackLauncher, &IID_IWinHTTrackLauncher, &LIBID_WINHTTRACKIEBARLib>, 
  21.     public ISupportErrorInfo,
  22.     public CComObjectRoot,
  23.     public CComCoClass<WinHTTrackLauncher,&CLSID_WinHTTrackLauncher>,
  24.   public IOleCommandTarget,
  25.   public IObjectWithSite
  26. {
  27. private:
  28.   CComPtr<IWebBrowser2> browser;
  29. public:
  30.     WinHTTrackLauncher() {}
  31. BEGIN_COM_MAP(WinHTTrackLauncher)
  32.     COM_INTERFACE_ENTRY(IDispatch)
  33.     COM_INTERFACE_ENTRY(IOleCommandTarget)
  34.   COM_INTERFACE_ENTRY(IObjectWithSite)
  35.     COM_INTERFACE_ENTRY(IWinHTTrackLauncher)
  36.     COM_INTERFACE_ENTRY(ISupportErrorInfo)
  37. END_COM_MAP()
  38. //DECLARE_NOT_AGGREGATABLE(WinHTTrackLauncher) 
  39. // Remove the comment from the line above if you don't want your object to 
  40. // support aggregation. 
  41.  
  42. DECLARE_REGISTRY_RESOURCEID(IDR_WinHTTrackLauncher)
  43. // ISupportsErrorInfo
  44.     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  45.  
  46.  
  47. // IOleCommandTarget
  48. STDMETHOD(QueryStatus)(const GUID __RPC_FAR *pguidCmdGroup, ULONG cCmds, OLECMD __RPC_FAR prgCmds[  ], OLECMDTEXT __RPC_FAR *pCmdText);
  49. STDMETHOD(Exec)(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG *pvaIn, VARIANTARG *pvaOut);
  50.  
  51. // IObjectWithSite
  52. STDMETHOD(SetSite)(IUnknown* pUnkSite);
  53. STDMETHOD(GetSite)(REFIID riid, void** ppvSite);
  54.  
  55.  
  56. // IWinHTTrackLauncher
  57. public:
  58. };
  59.  
  60. #endif // !defined(AFX_WINHTTRACKLAUNCHER_H__08EA4A9D_DC5C_487F_8196_18B699DB7E08__INCLUDED_)
  61.